Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add download stats and estimate to fetch-data (#149) #150

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

willkg
Copy link
Collaborator

@willkg willkg commented Sep 18, 2024

This adds a --stats option to fetch-data that will show download stats and an estimate instead of the verbose log of what it downloaded.

With --no-stats (the default):

$ supersearch --num=105 | fetch-data --processed --no-raw --no-dumps --overwrite --workers=10 --no-stats crashdata
Using API token: xxx
Using 10 workers.
e96fe956-3c2f-4d58-b9b9-30d200240918: fetching processed crash
... CLIP ...
191c49a6-22a0-4d1f-a606-2c8f00240918: fetching processed crash
Completed in 0:00:05.

With `--stats``:

$ supersearch --num=105 | fetch-data --processed --no-raw --no-dumps --overwrite --workers=10 --stats crashdata
Using API token: xxx
Using 10 workers.
Downloaded (0/105) 0:00:52.308396
Downloaded (100/105) 0:00:00.514721
Completed in 0:00:08.

@willkg willkg merged commit 918c799 into main Sep 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant